package com.qys.livesMall.anchor.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 主播直播间表
 * </p>
 *
 * @author wzy
 * @since 2023-06-26
 */
@Getter
@Setter
@TableName("h2_anchor_lives_room")
@Schema(name = "AnchorLivesRoom", description = "主播直播间表")
public class AnchorLivesRoom implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "直播间id")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "直播间编号")
    private String livesRoomNum;

    @Schema(description = "主播id")
    private Long anchorId;

    @Schema(description = "主播名")
    private String anchorName;

    @Schema(description = "直播间状态(0:正常  1:已封禁)")
    private Byte status;

    @Schema(description = "直播状态 1:未开播  2：开播中")
    private Byte liveStatus;

    @Schema(description = "最后一次直播时间")
    private LocalDateTime lastLiveTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
